#pragma once

#include <thread>

class XThread
{
public:
	XThread();
	~XThread();

	virtual void Start();
	virtual void Stop();
	virtual void Wait();
	bool isExit();

private:
	bool isExit_ = false;
	std::thread th_;
	virtual void Main() = 0;
};

